﻿$(function () {
    var st = 180;
    $('#nav_all>li').mouseenter(function () {
        $(this).find('ul').stop(false, true).slideDown(st);
        $(this).find('ul').css({ "top": $(this).css("top"), "left": $(this).css("left") });
        var selectA = $($(this).children("a").get(0));
        $(this).find("a").css({ "color": "black" });
        selectA.css("color", "red");
        $(this).css("background-image", "url(../images/white.png)")
    }).mouseleave(function () {
        $(this).find('ul').stop(false, true).slideUp(st);
        var selectA = $($(this).children("a").get(0));
        selectA.css("color", "white");
        $(this).css("background-image", "url(../images/no.png)");
    });
});